package cc.ycws.core.old.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import com.alibaba.fastjson.annotation.JSONField;

/**
  * <p>
  * 
  * </p>
  *
  * @author tutu
  * @since 2018-05-01
  */
@TableName("wx_access_token")
public class WxAccessToken implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * access_token凭证
     */
    private String accesstoken;

    /**
     * 凭证有效时间，单位：秒
     */
    private Long expiresin;

    /**
     * 创建时间距离当前时间毫秒数
     */
    private Long createtime;

    /**
     * userid
     */
    private String userid;

    /**
     * 创建时间
     */
    private String createdate;

    public Integer getId() {
    return id;
    }

    public void setId(Integer id) {
    this.id = id;
    }
    public String getAccesstoken() {
    return accesstoken;
    }

    public void setAccesstoken(String accesstoken) {
    this.accesstoken = accesstoken;
    }
    public Long getExpiresin() {
    return expiresin;
    }

    public void setExpiresin(Long expiresin) {
    this.expiresin = expiresin;
    }
    public Long getCreatetime() {
    return createtime;
    }

    public void setCreatetime(Long createtime) {
    this.createtime = createtime;
    }
    public String getUserid() {
    return userid;
    }

    public void setUserid(String userid) {
    this.userid = userid;
    }
    public String getCreatedate() {
    return createdate;
    }

    public void setCreatedate(String createdate) {
    this.createdate = createdate;
    }

    @Override
    public String toString() {
        return "WxAccessToken{" +
                "id=" + id +
                ", accesstoken=" + accesstoken +
                ", expiresin=" + expiresin +
                ", createtime=" + createtime +
                ", userid=" + userid +
                ", createdate=" + createdate +
        "}";
    }
}
